Almost all callers of _gtk_widget_draw already did their own
cairo_save/restore, so drop the save/restore calls inside
_gtk_widget_draw and instead fix the last caller, gtk_widget_draw,
to do the same.
* the window hierarchy.
*/
- cairo_save (cr);
-
push_group =
widget->priv->alpha != 255 &&
(!_gtk_widget_is_toplevel (widget) ||
cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
cairo_paint_with_alpha (cr, widget->priv->alpha / 255.0);
}
-
- cairo_restore (cr);
}
g_return_if_fail (!widget->priv->alloc_needed);
g_return_if_fail (cr != NULL);
+ cairo_save (cr);
_gtk_widget_draw (widget, cr);
+ cairo_restore (cr);
}
static gboolean